package com.api.oa.services;

import com.api.oa.model.entity.OaNotice;
import com.api.oa.model.entity.OaRelation;
import com.api.oa.model.vo.OaNoticeVo;
import com.api.oa.model.vo.OaOrgTreeVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IOaOrgNoticeRelationService {


    /**
     * 下发通知
     * @param oaOrg
     * @return
     */
    OaNotice add(OaRelation oaOrg);


    void remove(Long id);


    Integer update(OaRelation org);


    List<OaRelation> list(Long pid);


    PageInfo<OaRelation> page(Long pid,Integer pageIndex,Integer pageSize);

    /**
     * 发布机构
     * @param orgId
     * @return
     */
    List<OaRelation> listFrom(Long orgId);

    OaRelation one(Long id);
}
